package com.gitee;

import com.gitee.handlers.DefHandler;
import com.gitee.handlers.FormulaHandler;
import com.gitee.handlers.InputHandler;
import com.gitee.handlers.SelectHandler;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Administrator
 * @date 2020/9/9
 * @Description: TODO
 */
public class Test {

    public static void main(String[] args) {

//        //手动填处理模板
        DefHandler.handlers.put("input",new InputHandler());
        DefHandler.handlers.put("select",new SelectHandler());
        DefHandler.handlers.put("formula",new FormulaHandler());
        Map<String,String> param = new HashMap<>();
//        ExcelCell excelCell1 = new ExcelCell();
//        excelCell1.setType("input");
//        excelCell1.setStyle("width:80%;text-align:center;");
//        excelCell1.setCellVal("506");
//        param.put("D10",excelCell1);
//
//        ExcelCell excelCell2 = new ExcelCell();
//        excelCell2.setType("select");
//        excelCell2.setCellVal("2");
//        excelCell2.setEnums("1,无;2,悬浮物;");
//        excelCell2.setStyle("width:80%");
//        param.put("D11",excelCell2);
//
//        ExcelCell excelCell3 = new ExcelCell();
//        excelCell3.setType("input");
//        excelCell3.setStyle("width:80%;text-align:center;");
//        excelCell3.setCellVal("50");
//        param.put("D12",excelCell3);
//
//        ExcelCell excelCell4 = new ExcelCell();
//        excelCell4.setType("formula");
//        excelCell4.setFormula("D10+D12-20");
//        excelCell4.setStyle("width:80%;text-align:center;");
//        param.put("D13",excelCell4);
        ExcelToHtml.pdf2html("D:\\谷歌下载\\巡检任务报表导出 (4).xlsx",param);
    }

}
